package com.squid.dataCenter.service.datadictionaryparent;

import com.squid.base.common.mapper.EasyService;
import com.squid.dataCenter.model.entity.DataDictionaryParentEntity;
import com.squid.dataCenter.model.req.datadictionaryparent.DataDictionaryParentInsertReq;
import com.squid.dataCenter.model.req.datadictionaryparent.DataDictionaryParentUpdateReq;
import com.squid.dataCenter.model.resp.datadictionaryparent.DataDictionaryParentResp;

import java.util.List;

/**
 * 数据字典服务
 *
 * @author jinhang1
 * @date 2024/06/27
 */
public interface DataDictionaryParentService extends EasyService<DataDictionaryParentEntity> {

    /**
     * 选择数据dic父列表
     *
     * @return {@link List }<{@link DataDictionaryParentResp }>
     */
    List<DataDictionaryParentResp> selectDataDicParentList();

    /**
     * 添加
     *
     * @param req 要求事情
     */
    void add(DataDictionaryParentInsertReq req);

    /**
     * 更新
     *
     * @param req 要求事情
     */
    void update(DataDictionaryParentUpdateReq req);

    /**
     * 删除
     *
     * @param id id
     */
    void delete(Long id);
}
